From 3d91a6e1ac168d0749cd816c1ea99b44336ffa0c Mon Sep 17 00:00:00 2001
From: it-fixcomart <it@fixcomart.co.id>
Date: Mon, 26 May 2025 16:20:09 +0700
Subject: <fix merchant>

---
 src/pages/daftar-merchant/[status].jsx | 47 ----------------------------------
 1 file changed, 47 deletions(-)
 delete mode 100644 src/pages/daftar-merchant/[status].jsx

(limited to 'src/pages/daftar-merchant/[status].jsx')

diff --git a/src/pages/daftar-merchant/[status].jsx b/src/pages/daftar-merchant/[status].jsx
deleted file mode 100644
index 61c07571..00000000
--- a/src/pages/daftar-merchant/[status].jsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import BasicLayout from '@/core/components/layouts/BasicLayout';
-import IsAuth from '@/lib/auth/components/IsAuth';
-import StatusMerchant from '@/lib/merchant/components/AccountSwitch';
-import { useRouter } from 'next/router';
-import axios from 'axios';
-import { useState, useEffect } from 'react';
-import Seo from '@/core/components/Seo';
-import { getAuth } from '~/libs/auth';
-
-export async function getServerSideProps(context) {
-  const { status } = context.query;
-  //   await axios.post(
-  //     `${process.env.NEXT_PUBLIC_SELF_HOST}/api/pengajuan-tempo/${status}`,
-  //     {},
-  //     { headers: context.req.headers }
-  //   );
-  return { props: {} };
-}
-
-export default function Finish() {
-  const [isLoading, setIsLoading] = useState(true);
-  const router = useRouter();
-  const auth = getAuth();
-  useEffect(() => {
-    if (!auth) {
-      const nextUrl = encodeURIComponent(router.asPath);
-      router.push(`/login?next=${nextUrl}`);
-    } else {
-      setIsLoading(false);
-    }
-  }, [auth]);
-
-  if (isLoading || !auth) {
-    return null; // Tidak render apa pun selama loading atau auth/tempo belum tersedia
-  }
-  return (
-    <>
-      <Seo title='Pengajuan Tempo Indoteknik.com' />
-
-      <IsAuth>
-        <BasicLayout>
-          <StatusMerchant query={router.query || {}} />
-        </BasicLayout>
-      </IsAuth>
-    </>
-  );
-}
-- 
cgit v1.2.3

